package com.ae.shield.common.effect;

import com.ae.shield.ModLib;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.entity.ai.attributes.Attributes;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectType;
import net.minecraftforge.common.ForgeMod;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class EffectList {
    public static final DeferredRegister<Effect> EFFECTS = DeferredRegister.create(ForgeRegistries.POTIONS, ModLib.MOD_ID);
    public static final RegistryObject<Effect> FLY_EFFECT = EFFECTS.register("fly", () -> new CommonEffect(EffectType.BENEFICIAL, 0x0000000));
    public static final RegistryObject<Effect> REACH_EFFECT = EFFECTS.register("reach", () -> new CommonEffect(EffectType.BENEFICIAL, 0x0000000).addAttributesModifier(ForgeMod.REACH_DISTANCE.get(), "B7FE5CAE-3A37-7EA2-D7C5-1AF2A2A041D5", 2d, AttributeModifier.Operation.ADDITION));
    public static final RegistryObject<Effect> SPEED_EFFECT = EFFECTS.register("speed", () -> new CommonEffect(EffectType.BENEFICIAL, 0x0000000).addAttributesModifier(Attributes.ATTACK_SPEED, "2C51A150-0851-D61D-FFF9-42636B7346AF", 0.1d, AttributeModifier.Operation.MULTIPLY_BASE));
}
